package com.aos.erp.gov;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableScheduling //开启定时任务
@SpringBootApplication
@EnableEurekaClient
@EnableDiscoveryClient
@EnableFeignClients
@MapperScan({"com.aos.erp.gov.ex.mapper", "com.aos.erp.gov.mapper"})
@ComponentScan(basePackages = {"com.aos.erp.common.config"
        , "com.aos.erp.gov.ex.service"
        , "com.aos.erp.gov.ex.task"
        , "com.aos.erp.gov.ex.web"
        , "com.aos.erp.gov.service"
        , "com.aos.erp.gov.web"})
public class GovServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(GovServiceApplication.class, args);
    }
}
